package com.seari.service;

import com.seari.mapper.DeviceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("deviceService")
public class DeviceServiceImpl implements DeviceService {

    @Autowired
    private DeviceMapper deviceMapper;

    @Override
    public Map<String,Integer> selectFaultTrendThisYear(){
        return deviceMapper.selectFaultTrendThisYear();
    }
    @Override
    public Map<String,Integer> selectFaultTrendLastYear(){
        return deviceMapper.selectFaultTrendLastYear();
    }
	@Override
	public Map<String,Integer>  getEnergyTrendDataThisYear() {
		return deviceMapper.getEnergyTrendDataThisYear();
	}
	@Override
	public Map<String,Integer>  getEnergyTrendDataLastYear() {
		return deviceMapper.getEnergyTrendDataLastYear();
	}
	@Override
    public Integer getEnergyTrendDataThisMonth() {
    	return deviceMapper.getEnergyTrendDataThisMonth();
    };
    @Override
    public Integer getEnergyAll() {
    	return deviceMapper.getEnergyAll();
    }
    @Override
    public Integer getEnergyAllLastYear() {
    	return deviceMapper.getEnergyAllLastYear();
    }
	@Override
	public Integer getEnergyThisMonth() {
		return deviceMapper.getEnergyThisMonth();
	}
	@Override
	public Integer getEnergyLastMonth() {
		return deviceMapper.getEnergyLastMonth();
	}
	@Override
	public Integer getWaterAll() {
		return deviceMapper.getWaterAll();
	}
	@Override
	public Integer getWaterAllLastYear() {
		return deviceMapper.getWaterAllLastYear();
	}
	@Override
	public Integer getWaterThisMonth() {
		return deviceMapper.getWaterThisMonth();
	}
	@Override
	public Integer getWaterLastMonth() {
		return deviceMapper.getWaterLastMonth();
	};
	@Override
	public Integer getWaterLastDay() {
		return deviceMapper.getWaterLastDay();
	};


}
